3. Application security focuses on processes, not just the underlying data. Application security allows you to grant permissions for forms, reports, and procedures. Database security, on the other hand, focuses strictly on the data and the database.
4. There are the two main features of any good application security scheme:
· It must have a process that allows users to log into the application using stored passwords.
· It must have an access rights scheme that limits the functions that users can perform within the system.
5. Application security schemes can't prevent unauthorized use of your data by tools such as the Visual Data Manager. Application security only works within an application. Therefore, you should not rely on it as the only means of securing your application or your data.
6. Access rights security schemes build an added level of security into your application. This type of security allows you to define a set of secured operations within your application and then define access rights for each of the operations on a user-by-user basis.
7. You add audit trails for these reasons:
· To track when users log into and out of applications.
· To provide detail as to the status of the application when a system error occurs.
· To keep a record of major user activities, such as data table updates and the running of key reports or processes.
Answers to Day 21 Exercise
You can complete this assignment by using the SecTest project as a guide.
1. Start SQL-VB5 and build the Assets table in a database called EXER21.MDB. Be sure to add the secUsers and secAccess tables in the database definition. Use the SQL-Visual Basic code in the secTest.SQV script as a guide.
2. Add some records to the Assets, secUsers, and secAccess tables in the new database. You can do this with SQL-VB5 or with the Visual Data Manager.
3. Now start a new Visual Basic 5.0 Standard EXE project. Create a form with six input textboxes and size label prompts (use control arrays). Add a five-item command button array and a data control to the form.
4. Add a reference to the new security objects library. Select Project | Components from the main menu and locate and select the library you built in Chapter 21.
5. Add the following code to the form. This is all the code you need for the form. (You can copy most of this from the SecTest project).